import Vue from 'vue'
import Router from 'vue-router'
import Signin from '@/components/Signin/Signin'
Vue.use(Router)
const Home = ()=>import(/* webpackChunkName: "Home" */ '@/components/Home/Home')
const PermissionManage = ()=>import(/* webpackChunkName: "PermissionManage" */ '@/components/Home/system/PermissionManage')
const accountManage = ()=>import(/* webpackChunkName: "accountManage" */ '@/components/Home/system/accountManage')
const RoleManage = ()=>import(/* webpackChunkName: "RoleManage" */ '@/components/Home/system/RoleManage')
const LotteryNews = ()=>import(/* webpackChunkName: "LotteryNews" */ '@/components/Home/News/LotteryNews')
const LotteryList = ()=>import(/* webpackChunkName: "LotteryList" */ '@/components/Home/LotteryManage/LotteryList')
export default new Router({
  routes: [
    {
      path:'/',
      redirect:{name:'Home'}
    },
    {
      path:'/Signin',
      name:'Signin',
      component:Signin,
    },
    {
      path:'/Home',
      name:'Home',
      component:Home,
      children:[
        {
          path:'',
          redirect:{name:'彩票列表'}
        },
        {
          path:'PermissionManage',
          name:'权限管理',
          component:PermissionManage
        },
        {
          path:'accountManage',
          name:'用户管理',
          component:accountManage
        },
        {
          path:'RoleManage',
          name:'角色管理',
          component:RoleManage
        },
        {
          path:'LotteryNews',
          name:'彩票资讯',
          component:LotteryNews
        },
        {
          path:'LotteryList',
          name:'彩票列表',
          component:LotteryList
        }
      ]
    }
  ]
})
